package examples

import (
	"gitee.com/chewel/hermes/pkg/ginx/context"
	"gitee.com/chewel/hermes/pkg/ginx/route"
)

type DemoController struct {
}

func (d *DemoController) RegisterRoutes(r route.IRouterManager) {
	r.GET("/demo", func(c *context.HttpContext) {
		c.OK("hello world")
	}).Use(func(c *context.HttpContext) { c.Forbidden() })
}
